import * as types from '@constants/ActionTypes'

export default function fetchHome() {
    return (dispatch: Function) => new Promise(() => {
        dispatch(receivehome('ajax-success-call'))
    })
}

function receivehome(homes: string) {
    return {
        type: types.RECEIVE_HOME,
        homes,
    }
}
